<template>
  <div>
    <Backnav backTitle="结算信息"></Backnav>
    <div class="section">
      <div class="desc">
        <van-icon name="success" />
        <div>订单已生成，请您耐心等待</div>
      </div>
      <div class="btnGrounp">
        <button type="button" @click="toHome">继续购物</button>
        <button type="button" @click="toOrderDetail">查看订单信息</button>
      </div>
    </div>
  </div>
</template>

<script>
import Backnav from "../../components/nav/Backnav.vue";
export default {
  components: { Backnav },
  methods: {
    //查看订单
    toOrderDetail() {
      this.$router.push("/orderDetail");
    },
    // 回到主页
    toHome() {
      this.$router.push("/home");
    },
  },
};
</script>
<style lang="less" scoped>
.section {
  font-size: 14px;
  margin-top: 3.125rem;
  .desc {
    height: 180px;
    background-color: #4bd863;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
    font-weight: 800;
    div {
      margin-top: 5px;
    }
  }
  .btnGrounp {
    width: 90%;
    margin: 80px auto;
    display: flex;
    flex-direction: column;
    button {
      width: 100%;
      height: 40px;
      border-radius: 5px;
      border: 0.5px solid #4bd863;
      margin: 5px 0;
    }
    button:first-child {
      color: white;
      background-color: #4bd863;
      font-weight: 800;
    }

    button:last-child {
      color: #4bd863;
      background-color: white;
    }
  }
}
</style>